package com.ny.zhifu;

public class Yinghang implements Pay {
    double yue =250;
    @Override
    public void pay(double moeny) {
            if(yue>=moeny){
                System.out.println("银行卡支付"+moeny);
                yue = yue - moeny;
                System.out.println("余额："+yue);
            }
            else {
                System.out.println("没钱了T.T");
            }
    }
}
